import request from '@/utils/request'

// 查询导航管理列表
export function listBlogNavigation(query) {
  return request({
    url: '/blog/blogNavigation/list',
    method: 'get',
    params: query
  })
}

// 查询导航管理详细
export function getBlogNavigation(navigationId) {
  return request({
    url: '/blog/blogNavigation/' + navigationId,
    method: 'get'
  })
}

// 新增导航管理
export function addBlogNavigation(data) {
  return request({
    url: '/blog/blogNavigation',
    method: 'post',
    data: data
  })
}

// 修改导航管理
export function updateBlogNavigation(data) {
  return request({
    url: '/blog/blogNavigation',
    method: 'put',
    data: data
  })
}

// 删除导航管理
export function delBlogNavigation(navigationId) {
  return request({
    url: '/blog/blogNavigation/' + navigationId,
    method: 'delete'
  })
}
